<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String contextPath = (String) request.getContextPath();
%>
<html>
	<head>
		<title>omArea</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<script type="text/javascript">
			var contextPath = '<%=contextPath%>';
		</script>
		<script type="text/javascript"
			src="<%=contextPath%>/js/jquery/jquery-1.7.1.min.js"></script>
		<script type="text/javascript"
			src="<%=contextPath%>/jsp/om/omAreaEdit.js"></script>
		<link rel="stylesheet" type="text/css" href="<%=contextPath%>/jsp/form/css/form_gray.css" />
 
		<script type="text/javascript" src="<%=contextPath%>/js/jquery/JSCal2-1.9/js/jscal2.js"></script>
   		<script type="text/javascript" src="<%=contextPath%>/js/jquery/JSCal2-1.9/js/lang/cn.js"></script>
   	 	<link rel="stylesheet" type="text/css" href="<%=contextPath%>/js/jquery/JSCal2-1.9/css/jscal2.css" />
    	<link rel="stylesheet" type="text/css" href="<%=contextPath%>/js/jquery/JSCal2-1.9/css/border-radius.css" />
    	<link rel="stylesheet" type="text/css" href="<%=contextPath%>/js/jquery/JSCal2-1.9/css/steel/steel.css" />
		
	</head>

	<body>
		
		<div id="stylized" class="myform">
			<form id="form" name="form" method="post" action="">
			<input type="hidden" name="operation" value="${operation}" />
				<h1>
				<c:if test="${operation == 'add'}">
					新增区域信息
				</c:if>
				<c:if test="${operation == 'edit'}">
					修改区域信息
				</c:if>
				</h1>
				<p>
					请按照要求仔细填写以下信息
				</p>
				<label>
					区域标识
					<span class="small">填入区域唯一标志</span>
				</label>
				<input type="text" name="areaId" id="areaId" value="${bean.areaId}" />
				<label>
					区域名称
					<span class="small">填入中文区域名称</span>
				</label>
				<input type="text" name="areaName" id="areaName" value="${bean.areaName}" />
				<label>
					区域编码
					<span class="small">填入两位区域编码</span>
				</label>
				<input type="text" name="areaCode" id="areaCode" value="${bean.areaCode}" />
				<label>
					上级区域
					<span class="small">填入上级区域标识</span>
				</label>
				<input type="text" name="parntAreaId" id="parntAreaId" value="${bean.parntAreaId}" />
				<label>
					区域描述
					<span class="small">填入中文区域描述</span>
				</label>
				<input type="text" name="areaDesc" id="areaDesc" value="${bean.areaDesc}" />
				<label>
					创建时间
					<span class="small">填入区域创建时间</span>
				</label>
				<input type="text" name="createDate" id="createDate" readonly="readonly" value="${bean.createDate}"/>
				<button id="submit" type="submit">
					提交
				</button>
				<div class="spacer"></div>
			</form>
		</div>
		
	</body>
</html>
